package com.resourcestore.action;

import java.io.UnsupportedEncodingException;

import java.text.ParseException;
import java.util.List;

import com.resourcestore.utils.CommonUtil;
import com.resourcestore.utils.tag.Pagination;
import com.resourcestore.action.BaseAction;
import com.resourcestore.dao.*;
import com.resourcestore.model.*;

public class AjaxResultDataAction extends BaseAction {

	private MajorGroupDao majorGroupDao = new MajorGroupDao();
	private DepartmentDao departmentDao = new DepartmentDao();
	private MajorDao majorDao = new MajorDao();
	private UsersDao usersDao = new UsersDao();
	private String majorGroupData;
	private String majorData;
	private MajorGroup majorGroup;
	private Major major;
	private ClassStu classStu;
	private ClassStuDao classStuDao = new ClassStuDao();
	private String classData;
	private String isNotUsedData;
	private StudentsDao studentsDao = new StudentsDao();
	private Students students;
	private Users users;
	private MajorFileSrcCate majorFileSrcCate;
	private MajorFileSrcCateDao majorFileSrcCateDao = new MajorFileSrcCateDao();
	private CourseFileSrcCatePublic courseFileSrcCatePublic;
	private CourseFileSrcCatePublicDao courseFileSrcCatePublicDao = new CourseFileSrcCatePublicDao();
	private CourseDao courseDao = new CourseDao();
	private String courseData;
	private String usersData;
	private CourseTeaClassFK courseTeaClassFK;
	private String checkedCourseData;
	private CourseTeaClassFKDao courseTeaClassFKDao = new CourseTeaClassFKDao();
	private CourseFileSrcCatePrivateDao courseFileSrcCatePrivateDao = new CourseFileSrcCatePrivateDao();
	private CourseFileSrcCatePrivate courseFileSrcCatePrivate;
	private String courseTeaClassData;
	private OperationsDao operationsDao = new OperationsDao();
	private String operationsData;
	private String departmentData;
	private String majorGroupDataByDepartmentId;
	private String majorDataByDepartmentId;
	private String courseCateDataByIsPublic;
	private CourseCategoryDao courseCategoryDao = new CourseCategoryDao();
	private CourseCategory courseCategory;
	private String termAllData;
	private String classAllData;
	private TermDao termDao = new TermDao();
	private String rolesData;
	private RolesDao rolesDao = new RolesDao();
	private String courseCategoryData;

	/**
	 * 查询termAllData列表并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllTerm() {

		List<Term> listTerm = termDao.selectTerm();
		StringBuilder sb = new StringBuilder();
		int size = listTerm.size();

		sb.append("[");
		for (Term term : listTerm) {
			size--;
			sb.append("{termId:\"");
			sb.append(term.getTermId());
			sb.append("\",termName:\"");
			sb.append(term.getTermName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.termAllData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 查询rolesData列表并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllRoles() {

		List<Roles> listRoles = rolesDao.selectRoles();
		StringBuilder sb = new StringBuilder();
		int size = listRoles.size();

		sb.append("[");
		for (Roles roles : listRoles) {
			size--;
			sb.append("{rolesId:\"");
			sb.append(roles.getRolesId());
			sb.append("\",roleName:\"");
			sb.append(roles.getRoleName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.rolesData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 查询classAllData列表并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllClass() {

		List<ClassStu> listClassStu = classStuDao.selectClassStu();
		StringBuilder sb = new StringBuilder();
		int size = listClassStu.size();

		sb.append("[");
		for (ClassStu classStu : listClassStu) {
			size--;
			sb.append("{classId:\"");
			sb.append(classStu.getClassId());
			sb.append("\",className:\"");
			sb.append(classStu.getClassName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.classAllData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 查询MajorGroup列表并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllMajorGroup() {

		List<MajorGroup> listMajorGroup = majorGroupDao.selectMajorGroup();
		StringBuilder sb = new StringBuilder();
		int size = listMajorGroup.size();

		sb.append("[");
		for (MajorGroup majorGroup : listMajorGroup) {
			size--;
			sb.append("{majorGroupId:\"");
			sb.append(majorGroup.getMajorGroupId());
			sb.append("\",majorGroupName:\"");
			sb.append(majorGroup.getMajorgroupName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.majorGroupData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 查询Department列表并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllDepartment() {

		List<Department> listDepartment = departmentDao.selectDepartment();
		StringBuilder sb = new StringBuilder();
		int size = listDepartment.size();

		sb.append("[");
		for (Department department : listDepartment) {
			size--;
			sb.append("{departmentId:\"");
			sb.append(department.getDepartmentId());
			sb.append("\",departmentName:\"");
			sb.append(department.getDepartmentName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.departmentData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 查询user列表并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllUsers() {

		List<Users> listUsers = usersDao.selectUsers();
		StringBuilder sb = new StringBuilder();
		int size = listUsers.size();

		sb.append("[");
		for (Users users : listUsers) {
			size--;
			sb.append("{userName:\"");
			sb.append(users.getUserName());
			sb.append("\",realName:\"");
			sb.append(users.getRealName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.usersData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 根据MajorGroupId条件查询相关Major并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllMajorByMajorGroupId() {

		List<Major> listMajor = majorDao.selectMajorByMajorGroupId(major);
		StringBuilder sb = new StringBuilder();
		int size = listMajor.size();

		sb.append("[");
		for (Major majorTemp : listMajor) {
			size--;
			sb.append("{majorId:\"");
			sb.append(majorTemp.getMajorId());
			sb.append("\",majorName:\"");
			sb.append(majorTemp.getMajorName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.majorData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 根据IsPublic条件查询相关CourseCate并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listCourseCateByIsPublic() {

		List<CourseCategory> listCourseCate = courseCategoryDao
				.selectCourseCategoryByIsPublic(courseCategory);
		StringBuilder sb = new StringBuilder();
		int size = listCourseCate.size();

		sb.append("[");
		for (CourseCategory courseCategoryTemp : listCourseCate) {
			size--;
			sb.append("{courseCateId:\"");
			sb.append(courseCategoryTemp.getCourseCateId());
			sb.append("\",courseCateName:\"");
			sb.append(courseCategoryTemp.getCourseCateName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.courseCateDataByIsPublic = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 查询相关CourseCate并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllCourseCategory() {

		List<CourseCategory> listCourseCategory = courseCategoryDao.selectCourseCategory();
		StringBuilder sb = new StringBuilder();
		int size = listCourseCategory.size();

		sb.append("[");
		for (CourseCategory courseCategoryTemp : listCourseCategory) {
			size--;
			sb.append("{courseCateId:\"");
			sb.append(courseCategoryTemp.getCourseCateId());
			sb.append("\",courseCateName:\"");
			sb.append(courseCategoryTemp.getCourseCateName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.courseCategoryData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 根据departmentId条件查询相关Major并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllMajorByDepartmentId() {

		List<Major> listMajor = majorDao.selectMajorByDepartmentId(major);
		StringBuilder sb = new StringBuilder();
		int size = listMajor.size();

		sb.append("[");
		for (Major majorTemp : listMajor) {
			size--;
			sb.append("{majorId:\"");
			sb.append(majorTemp.getMajorId());
			sb.append("\",majorName:\"");
			sb.append(majorTemp.getMajorName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.majorDataByDepartmentId = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 根据departmentId条件查询相关MajorGroup并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listMajorGroupByDepartmentId() {

		List<MajorGroup> listMajorGroup = majorGroupDao
				.selectMajorGroupByDepartmentId(majorGroup);
		StringBuilder sb = new StringBuilder();
		int size = listMajorGroup.size();

		sb.append("[");
		for (MajorGroup majorGroupTemp : listMajorGroup) {
			size--;
			sb.append("{majorGroupId:\"");
			sb.append(majorGroupTemp.getMajorGroupId());
			sb.append("\",majorgroupName:\"");
			sb.append(majorGroupTemp.getMajorgroupName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.majorGroupDataByDepartmentId = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 根据MajorId条件查询相关ClassStu并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllClassByMajorId() {

		List<ClassStu> listClass = classStuDao
				.selectClassStuByMajorId(classStu);
		StringBuilder sb = new StringBuilder();
		int size = listClass.size();

		sb.append("[");
		for (ClassStu classStuTemp : listClass) {
			size--;
			sb.append("{classId:\"");
			sb.append(classStuTemp.getClassId());
			sb.append("\",className:\"");
			sb.append(classStuTemp.getClassName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.classData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 根据MajorGroupId条件查询相关ClassStu并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllClassByDepartmentId() {

		List<ClassStu> listClass = classStuDao
				.selectClassStuByDepartmentId(classStu);
		StringBuilder sb = new StringBuilder();
		int size = listClass.size();

		sb.append("[");
		for (ClassStu classStuTemp : listClass) {
			size--;
			sb.append("{classId:\"");
			sb.append(classStuTemp.getClassId());
			sb.append("\",className:\"");
			sb.append(classStuTemp.getClassName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.classData = sb.toString();

		return "json";
	}

	/**
	 * 查询相关Major并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllMajor() {

		List<Major> listMajor = majorDao.selectMajor();
		StringBuilder sb = new StringBuilder();
		int size = listMajor.size();

		sb.append("[");
		for (Major majorTemp : listMajor) {
			size--;
			sb.append("{majorId:\"");
			sb.append(majorTemp.getMajorId());
			sb.append("\",majorName:\"");
			sb.append(majorTemp.getMajorName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.majorData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 检验学号是否已存在并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String checkStuNumIsNotUsed() {

		Students stuTemp = studentsDao.selectStudentsByStuNum(students);
		StringBuilder sb = new StringBuilder();
		if (CommonUtil.isNotNullOrNotEqualsEmpty(stuTemp)) {
			sb.append("[");
			sb.append("{isNotUsed:\"");
			sb.append("true");
			sb.append("\"}");
			sb.append("]");
		} else {
			sb.append("[");
			sb.append("{isNotUsed:\"");
			sb.append("false");
			sb.append("\"}");
			sb.append("]");
		}

		this.isNotUsedData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 检验用户名是否已存在并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String checkUserNameIsNotUsed() {

		Users usersTemp = usersDao.selectUsersByUserName(users);
		StringBuilder sb = new StringBuilder();
		if (CommonUtil.isNotNullOrNotEqualsEmpty(usersTemp)) {
			sb.append("[");
			sb.append("{isNotUsed:\"");
			sb.append("true");
			sb.append("\"}");
			sb.append("]");
		} else {
			sb.append("[");
			sb.append("{isNotUsed:\"");
			sb.append("false");
			sb.append("\"}");
			sb.append("]");
		}

		this.isNotUsedData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 查看父分类是否为预置分类，查询cateId以及parentDepth在并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String checkParentCateIsPre() {

		MajorFileSrcCate mfscTemp = majorFileSrcCateDao
				.selectMajorFileSrcCateById(majorFileSrcCate);
		StringBuilder sb = new StringBuilder();
		sb.append("[");
		sb.append("{isNotUsed:\"");
		if (mfscTemp.getIsPreCategory() == 1) {
			sb.append("1");
		} else if (mfscTemp.getIsPreCategory() == 0) {
			sb.append("0");
		}
		sb.append("\"");
		sb.append(",cateId:\"");
		sb.append(mfscTemp.getMajorId());
		sb.append("\"");
		sb.append(",parentDepth:\"");
		sb.append(mfscTemp.getDepth());
		sb.append("\"}");
		sb.append("]");

		this.isNotUsedData = sb.toString();

		return "json";
	}

	/**
	 * 查看父分类是否为预置分类，查询cateId以及parentDepth在并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String checkParentCateIsPreCoursePublic() {

		CourseFileSrcCatePublic mfscTemp = courseFileSrcCatePublicDao
				.selectCourseFileSrcCatePublicById(courseFileSrcCatePublic);
		StringBuilder sb = new StringBuilder();
		sb.append("[");
		sb.append("{isNotUsed:\"");
		if (mfscTemp.getIsPreCourseCate() == 1) {
			sb.append("1");
		} else if (mfscTemp.getIsPreCourseCate() == 0) {
			sb.append("0");
		}
		sb.append("\"");
		sb.append(",cateId:\"");
		sb.append(mfscTemp.getCourseId());
		sb.append("\"");
		sb.append(",parentDepth:\"");
		sb.append(mfscTemp.getDepth());
		sb.append("\"}");
		sb.append("]");

		this.isNotUsedData = sb.toString();

		return "json";
	}

	/**
	 * 查看父分类是否为预置分类，查询cateId以及parentDepth在并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String checkParentCateIsPreCoursePrivate() {

		CourseFileSrcCatePrivate mfscTemp = courseFileSrcCatePrivateDao
				.selectCourseFileSrcCatePrivateById(courseFileSrcCatePrivate);
		StringBuilder sb = new StringBuilder();
		sb.append("[");
		sb.append("{isNotUsed:\"");
		if (mfscTemp.getIsPreCourseCate() == 1) {
			sb.append("1");
		} else if (mfscTemp.getIsPreCourseCate() == 0) {
			sb.append("0");
		}
		sb.append("\"");
		sb.append(",cateId:\"");
		sb.append(mfscTemp.getCourseId());
		sb.append("\"");
		sb.append(",parentDepth:\"");
		sb.append(mfscTemp.getDepth());
		sb.append("\"}");
		sb.append("]");

		this.isNotUsedData = sb.toString();

		return "json";
	}

	/**
	 * 查询相关Major并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllCourse() {

		List<Course> listCourse = courseDao.selectCourse();
		StringBuilder sb = new StringBuilder();
		int size = listCourse.size();

		sb.append("[");
		for (Course courseTemp : listCourse) {
			size--;
			sb.append("{courseId:\"");
			sb.append(courseTemp.getCourseId());
			sb.append("\",courseName:\"");
			sb.append(courseTemp.getCourseName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.courseData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	/**
	 * 查询相关Major并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listCourseByTUN() {

		List<Course> listCourse = courseDao.selectCourse();
		StringBuilder sb = new StringBuilder();
		int size = listCourse.size();

		sb.append("[");
		for (Course courseTemp : listCourse) {
			size--;
			sb.append("{courseId:\"");
			sb.append(courseTemp.getCourseId());
			sb.append("\",courseName:\"");
			sb.append(courseTemp.getCourseName());
			sb.append("\",courseCateName:\"");
			sb.append(courseTemp.getCourseCateName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.courseData = sb.toString();

		List<CourseTeaClassFK> listCourseTeaFK = courseTeaClassFKDao
				.selectCourseTeaClassFKByTUN(courseTeaClassFK);

		StringBuilder sb1 = new StringBuilder();
		size = listCourseTeaFK.size();

		sb1.append("[");
		for (CourseTeaClassFK courseTemp : listCourseTeaFK) {
			size--;
			sb1.append("{courseId:\"");
			sb1.append(courseTemp.getCourseId());
			sb1.append("\"}");
			if (size > 0) {
				sb1.append(",");
			}
		}
		sb1.append("]");

		this.checkedCourseData = sb1.toString();

		return "json";
	}

	/**
	 * 查询相关CourseId并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listCourseTeaClassByCourseId() {

		List<CourseTeaClassFK> listCourseTeaClassFK = courseTeaClassFKDao
				.selectCourseTeaClassFKByCourseId(courseTeaClassFK);
		StringBuilder sb = new StringBuilder();
		int size = listCourseTeaClassFK.size();

		sb.append("[");
		for (CourseTeaClassFK courseTemp : listCourseTeaClassFK) {
			size--;
			sb.append("{courseTeaClassId:\"");
			sb.append(courseTemp.getCourseTeaClassId());
			sb.append("\",realName:\"");
			sb.append(courseTemp.getRealName());
			sb.append("\",courseName:\"");
			sb.append(courseTemp.getCourseName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.courseTeaClassData = sb.toString();

		return "json";
	}

	/**
	 * 查询operations并返回JSON数据
	 * 
	 * @throws ParseException
	 * 
	 */
	public String listAllOperations() {

		List<Operations> listOperations = operationsDao.selectOperations();
		StringBuilder sb = new StringBuilder();
		int size = listOperations.size();

		sb.append("[");
		for (Operations operationsTemp : listOperations) {
			size--;
			sb.append("{operId:\"");
			sb.append(operationsTemp.getOperId());
			sb.append("\",operName:\"");
			sb.append(operationsTemp.getOperName());
			sb.append("\"}");
			if (size > 0) {
				sb.append(",");
			}
		}
		sb.append("]");

		this.operationsData = sb.toString();

		// this.outJsonString(majorGroupData,true);

		return "json";
	}

	public String getMajorGroupData() {
		return majorGroupData;
	}

	public void setMajorGroupData(String majorGroupData) {
		this.majorGroupData = majorGroupData;
	}

	public String getMajorData() {
		return majorData;
	}

	public void setMajorData(String majorData) {
		this.majorData = majorData;
	}

	public MajorGroup getMajorGroup() {
		return majorGroup;
	}

	public void setMajorGroup(MajorGroup majorGroup) {
		this.majorGroup = majorGroup;
	}

	public Major getMajor() {
		return major;
	}

	public void setMajor(Major major) {
		this.major = major;
	}

	public ClassStu getClassStu() {
		return classStu;
	}

	public void setClassStu(ClassStu classStu) {
		this.classStu = classStu;
	}

	public String getClassData() {
		return classData;
	}

	public void setClassData(String classData) {
		this.classData = classData;
	}

	public String getIsNotUsedData() {
		return isNotUsedData;
	}

	public void setIsNotUsedData(String isNotUsedData) {
		this.isNotUsedData = isNotUsedData;
	}

	public Students getStudents() {
		return students;
	}

	public void setStudents(Students students) {
		this.students = students;
	}

	public Users getUsers() {
		return users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public MajorFileSrcCate getMajorFileSrcCate() {
		return majorFileSrcCate;
	}

	public void setMajorFileSrcCate(MajorFileSrcCate majorFileSrcCate) {
		this.majorFileSrcCate = majorFileSrcCate;
	}

	public CourseFileSrcCatePublic getCourseFileSrcCatePublic() {
		return courseFileSrcCatePublic;
	}

	public void setCourseFileSrcCatePublic(
			CourseFileSrcCatePublic courseFileSrcCatePublic) {
		this.courseFileSrcCatePublic = courseFileSrcCatePublic;
	}

	public String getCourseData() {
		return courseData;
	}

	public void setCourseData(String courseData) {
		this.courseData = courseData;
	}

	public String getUsersData() {
		return usersData;
	}

	public void setUsersData(String usersData) {
		this.usersData = usersData;
	}

	public CourseTeaClassFK getCourseTeaFK() {
		return courseTeaClassFK;
	}

	public void setCourseTeaFK(CourseTeaClassFK courseTeaClassFK) {
		this.courseTeaClassFK = courseTeaClassFK;
	}

	public String getCheckedCourseData() {
		return checkedCourseData;
	}

	public void setCheckedCourseData(String checkedCourseData) {
		this.checkedCourseData = checkedCourseData;
	}

	public CourseFileSrcCatePrivate getCourseFileSrcCatePrivate() {
		return courseFileSrcCatePrivate;
	}

	public void setCourseFileSrcCatePrivate(
			CourseFileSrcCatePrivate courseFileSrcCatePrivate) {
		this.courseFileSrcCatePrivate = courseFileSrcCatePrivate;
	}


	public String getCourseTeaClassData() {
		return courseTeaClassData;
	}

	public void setCourseTeaClassData(String courseTeaClassData) {
		this.courseTeaClassData = courseTeaClassData;
	}

	public String getOperationsData() {
		return operationsData;
	}

	public void setOperationsData(String operationsData) {
		this.operationsData = operationsData;
	}

	public String getDepartmentData() {
		return departmentData;
	}

	public void setDepartmentData(String departmentData) {
		this.departmentData = departmentData;
	}

	public String getMajorGroupDataByDepartmentId() {
		return majorGroupDataByDepartmentId;
	}

	public void setMajorGroupDataByDepartmentId(
			String majorGroupDataByDepartmentId) {
		this.majorGroupDataByDepartmentId = majorGroupDataByDepartmentId;
	}

	public String getMajorDataByDepartmentId() {
		return majorDataByDepartmentId;
	}

	public void setMajorDataByDepartmentId(String majorDataByDepartmentId) {
		this.majorDataByDepartmentId = majorDataByDepartmentId;
	}

	public String getCourseCateDataByIsPublic() {
		return courseCateDataByIsPublic;
	}

	public void setCourseCateDataByIsPublic(String courseCateDataByIsPublic) {
		this.courseCateDataByIsPublic = courseCateDataByIsPublic;
	}

	public CourseCategory getCourseCategory() {
		return courseCategory;
	}

	public void setCourseCategory(CourseCategory courseCategory) {
		this.courseCategory = courseCategory;
	}

	public String getTermAllData() {
		return termAllData;
	}

	public void setTermAllData(String termAllData) {
		this.termAllData = termAllData;
	}

	public String getClassAllData() {
		return classAllData;
	}

	public void setClassAllData(String classAllData) {
		this.classAllData = classAllData;
	}

	public String getRolesData() {
		return rolesData;
	}

	public void setRolesData(String rolesData) {
		this.rolesData = rolesData;
	}

	public String getCourseCategoryData() {
		return courseCategoryData;
	}

	public void setCourseCategoryData(String courseCategoryData) {
		this.courseCategoryData = courseCategoryData;
	}

}
